package com.shop.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shop.pojo.Auctionproduct;
import com.shop.pojo.Auctionrecord;
import com.shop.pojo.Auctionuser;
import com.shop.pojo.CustomAuctionproduct;
import com.shop.tools.CustomException;

public interface AuctionService {

	List<Auctionproduct> findAllAuctions(Auctionproduct auction);
	
	Auctionproduct selectAuctionInfo(Integer auctionId);
	
	int insertSelective(Auctionproduct record);

	Auctionproduct selectAuctionById(Integer id);

	int updateAuction(Auctionproduct auction);

	/**
	 * 插入竞拍记录
	 * @param record
	 * @return
	 * @throws CustomException 
	 */
	int insertAuctionRecord(Auctionrecord record) throws CustomException;
	/**
	 * 查询竞拍结束的商品
	 * @return
	 */
	List<CustomAuctionproduct> listAuctionEnd();
	/**
	 * 查询竞拍中的商品
	 * @return
	 */
	List<Auctionproduct> listAuctionNotEnd();

	int deleteAuction(Integer id);


}
